//package com.hyzh.hj212.config;
//
//import com.coffee.concurrent.CoffeeExecutorManager;
//import com.coffee.netty.CoffeeRpcServer;
//import com.coffee.netty.config.ServerProperties;
//import com.coffee.netty.connection.Connection;
//import com.hyzh.hj212.client.ConnectonMananger;
//import com.hyzh.hj212.client.HjClient;
//import com.hyzh.hj212.netty.HjCoder;
//import com.hyzh.hj212.netty.HjServerHandler;
//import com.hyzh.hj212.service.LatteInitializeService;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.boot.ApplicationArguments;
//import org.springframework.boot.ApplicationRunner;
//import org.springframework.core.annotation.Order;
//import org.springframework.stereotype.Component;
//
//import java.util.concurrent.TimeUnit;
//
///**
// * @author songkui
// * @since 2024/6/12
// */
//@Component
//@Order
//@Slf4j
//public class StartAfterInitialize implements ApplicationRunner {
//
//
//    @Override
//    public void run(ApplicationArguments args) throws Exception {
//        Connection connection =   HjClient.getInstance().connection("127.0.0.1", 28000, 1);
////        ConnectonMananger.getInstance().put(connection);
//        HjClient.sendTestData(connection);
//        TimeUnit.SECONDS.sleep(3);
////        ConnectonMananger.getInstance().remove(connection);
////        connection.getChannel().eventLoop().schedule()
//        System.out.println("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
//    }
//
//
//
//
//
//}
